﻿package com.example.util;

public class DeviceType
{
  private final String type;
  private int index;

  
  public static DeviceType  TV = new DeviceType("TV",1);  //机顶盒
  public static DeviceType  STB = new DeviceType("STB",2);  //机顶盒
  public static DeviceType DVD = new DeviceType("DVD",3);   //影碟机
  public static DeviceType AMP = new DeviceType("AMP",4);   //功放
  public static DeviceType CL = new DeviceType("CL",11);   //窗帘
  public static DeviceType PD = new DeviceType("PD",6);
  public static DeviceType  KT = new DeviceType("KT",5);   //空调
  public static DeviceType  MB = new DeviceType("MB",10);   //幕布
  public static DeviceType  Other = new DeviceType("Other",0);
  public static DeviceType  JI = new DeviceType("JI",13);   //继电器
  public static DeviceType  SX = new DeviceType("SX",12);    //难道是摄像头。。。
  public static DeviceType  TD = new DeviceType("TD",7);
  public static DeviceType  ZD = new DeviceType("ZD",8);
  public static DeviceType  SD = new DeviceType("SD",9);    //射灯
    
  private DeviceType(String paramString,int index)
  {
    this.type = paramString;
    this.index = index;
  }

  public String getDeviceType()
  {
    return this.type;
  }
  public int getIndex()
  {
	  return this.index;
  }
  String[] a = new String[5];

   // arrayOfDeviceType[0] = MT;   
    
    /*arrayOfDeviceType[1] = TV;   //电视机
    arrayOfDeviceType[2] = STB;    //机顶盒
    arrayOfDeviceType[3] = DVD;   //影碟机
    arrayOfDeviceType[4] = AMP;  //功放
    arrayOfDeviceType[5] = CL;
    arrayOfDeviceType[6] = PD;
    arrayOfDeviceType[7] = KT;
    arrayOfDeviceType[8] = MB;    //幕布
    arrayOfDeviceType[9] = Other;
    arrayOfDeviceType[10] = JI;
    arrayOfDeviceType[11] = SX;
    arrayOfDeviceType[12] = TD;
    arrayOfDeviceType[13] = ZD;
    arrayOfDeviceType[14] = SD;*/
  

 
}

